package com.ler.springcloud.demo.controller;

import com.ler.springcloud.demo.controller.service.HelloService;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lww
 * @date 2019-05-12 5:35 PM
 */
@RestController
public class HelloControler {

	@Resource
	private HelloService helloService;

	@RequestMapping(value = "/hi")
	public String hi(@RequestParam String name) {
		return helloService.hiService(name);
	}
}
